package com.yun.space.service.impl;



import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.yun.space.base.BaseDaoImpl;
import com.yun.space.entity.MainContent;
import com.yun.space.entity.News;
import com.yun.space.service.NewsService;


/**
 * 对资讯中心的数据库接口的实现类
 * @author guo
 */
@Service
@Transactional
public class NewServiceImpl extends BaseDaoImpl<News> implements NewsService{
	public List<News> findFive() {
		return getSession().createQuery("from News").setMaxResults(4).list();
	}
}
